import { http } from "@/utils/http";
export function getBrandPageList(data: Partial<ShopBrandPageRequest & PageRequest>) {
  return http.post<MResponse<PageVo<Array<ShopBrandVo>>>>("/product/brand/getBrandPageList", { data });
}

export function addBrand(data: ShopBrandAddRequest) {
  return http.post<MResponse>("/product/brand/addBrand", { data });
}

export function updateBrand(data: ShopBrandUpdateRequest) {
  return http.post<MResponse>("/product/brand/updateBrand", { data });
}

export function delBrand(data: ShopBrandDelRequest) {
  return http.post<MResponse>("/product/brand/delBrand", { data });
}

export function getBrandSelect() {
  return http.post<MResponse<Array<SelectVo>>>("/product/brand/getBrandSelect");
}
